import requests as req;
import os;
import time;

if __name__ == '__main__':

    if(not os.path.exists("bug_file")):
        os.mkdir("bug_file");

    url = "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2562676030.jpg";
    result = req.get(url);
    io = result.content;

    file_name = str(time.time())+".png";
    with open("./bug_file/"+file_name,"wb") as wf:
        wf.write(io);

    print("图片爬取完毕!!");